#!/bin/bash

bakserv='192.168.18.46'
user='root'
passwd='zhangjie'
xinqi_num=`date +%w`


cd bin/svn


tar -zcvf svn.tgz_$xinqi_num  /var/svn/wgmf

lftp -p 22 -u ${user},${passwd} sftp://${bakserv} << EOF
cd /home/backup
put svn.tgz_$xinqi_num
bye
EOF

rm -rf svn.tgz_$xinqi_num
